using System;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Data;
using BusinessLogicLayer;

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class Service : System.Web.Services.WebService
{
    private BLBehaviour bl;
    public Service () {

        //Uncomment the following line if using designed components 
        //InitializeComponent(); 
        bl=new BLBehaviour();
    }

    [WebMethod]
    public DataSet SelectAll() 
    {
        return bl.SelectAll();
    }
    [WebMethod]
    public int updateConduct(string p,int m,string e)
    {
        return bl.updateConduct(p, m, e);
    }
    [WebMethod]
    public DataSet getClassList()
    {
        return bl.getClassList();
    }
    [WebMethod]
    public DataSet getClass(string c)
    {
        return bl.getClass(c);
    }
    [WebMethod]
    public DataSet getClassForConductEval(string c)
    {
        return bl.getClassForConductEval(c);
    }
    [WebMethod]
    public int getAbsent(string p)
    {
        return bl.getAbsent(p);
    }
    [WebMethod]
    public void createBehaviour(string p)
    {
        bl.createBehaviour(p);
    }
    [WebMethod]
    public int resetTable()
    {
        return bl.resetTable();
    }
    [WebMethod]
    public int markAbsent(string p)
    {
        return bl.markAbsent(p);
    }

    
}
